package poland;

public class NumericExpression extends Expression {
	private double _value;

	public NumericExpression(String original) {
		super(original);
		setValue(Double.valueOf((original)));
	}

	public double getValue() {
		return _value;
	}

	public void setValue(double value) {
		_value = value;
	}

	@Override
	public double evaluate() {
		return getValue();
	}

	@Override
	public String toString() {
		return Double.toString(getValue());
	}
}
